import java.util.Random;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sca=new Scanner(System.in);
        Random rad=new Random();
        int randNum= rad.nextInt(101);
        //System.out.println(randNum);
        while (true){
            System.out.println("请输入你要猜的数(0-100)：");
            int num=sca.nextInt();
            if(randNum>num){
                System.out.println("猜小了");
            } else if (randNum==num) {
                System.out.println("猜对了，这个数是"+num);
                break;
            }else {
                System.out.println("猜大了");
            }
        }
        sca.close();
    }
}